<% title @topic.name %>
 
<% for post in @topic.posts %>
<div class="post">
  <span class="left"><%= link_to "Edit", edit_post_path(post) %><br /><%= link_to "Delete", post, :confirm => 'Are you sute?', :method => :delete %></span>
  <span class="right"><%= post.nombre_autor %></span>
  <span class="right"><%= post.content %></span>
</div>
<% end %>
 
<p>
  <%= link_to "Reply", "#{new_post_path}?topic=#{@topic.id}" %> |
  <%= link_to "Destroy Topic", @topic, :confirm => 'Are you sure?', :method => :delete %> |
  <%= link_to "View All", forum_path(@topic.forum_id) %>
</p>
